<!--navbar-->
<div class="navbar">
    <div class="navbar-inner">
        <div class="left">
            {if:isset($_GET['back'])}
                <a href="{url:}" class="link back external">
            {else:}
                <a href="#" class="link back">
            {/if}
                <i class="icon icon-return"></i>
            </a>
        </div>
        <div class="center">{$name}</div>
        <div class="right">
            <a href="{url:/yunsimple/cart}" class="link ">
                <i class="icon-cart"></i>
            </a>
        </div>

    </div>
</div>
<div class="pages navbar-through">
    <div class="page no-toolbar subtoolbar-through" data-page="mallDetail">
        <div class="page-content pull-to-refresh-content-off">
			<!-- Default pull to refresh layer-->
		    <div class="pull-to-refresh-layer">
		      <div class="preloader"></div>
		      <div class="pull-to-refresh-arrow"></div>
		    </div>


            <div class="banner">
                <!-- Slider -->
                <div class="swiper-container swiper-init" data-speed="600" data-preload-images="false" data-lazy-Loading="true" data-autoplay="2000" data-loop="true" data-pagination=".page[data-page='mallDetail'] .swiper-pagination">
                    <div class="swiper-wrapper">
                        {foreach:items=$photo}
                        <div class="swiper-slide"><a href="{$item['img']}" > <img data-src="{$item['img']}?imageView2/4/w/414" class="swiper-lazy"></a>
                            <div class="preloader"></div>
                        </div>
                        {/foreach}
                    </div>
                    <div class="swiper-pagination"></div>
                </div>
            </div>
            <!--E banner-->
            <div class="dt-info">
				<input type="hidden" name="share_title" value="{$name}" />
				<input type="hidden" name="share_desc" value="" />
				<input type="hidden" name="share_link" value="{$share_link}" />
				<input type="hidden" name="share_imgUrl" value="{$ad_img}" />
				<input type="hidden" name="env" value="{$env}" />
				<input type="hidden" name="sys" value="{$sys}" />
				
                <h3><em>{$name}</em></h3>

                {if:$promo == 'time' && isset($time)}
                {include:_products_time}
                {/if}

                {if:$promo ==''}
                <div class="row">
                    <div class="price">
                        <ins><small>&yen;</small><b id="real_price">{$sell_price}</b></ins>
                        <del>市场价:<small>&yen;</small>{$market_price}</del>
                    </div>
                    <small>包邮</small>
                </div>
                {/if}
                
                <div class="row">
                    <div class="op">
                        <label for="">数量：</label>
                        <a class="button button-minus" href="javascript:void(0)"><i class="icon icon-minus"></i></a>
                        <input type="text" value="1" id="buyNums" name="buyNums">
                        <a class="button button-add" href="javascript:void(0)"><i class="icon icon-add"></i></a>
                    </div>
                    {if:$store_nums>100}
                    <small>库存：{$store_nums}</small>
                    {/if}
                    <input type="hidden" name="store_nums" value="{$store_nums}" />
                </div>
            </div>
            <div class="dt-vendor row">
                <div class="chip">

                    <div class="chip-label">{$seller['true_name']}</div>
                </div>
                <div class="right">
                    <a class="button" href="{url:/yunsite/home/id/$seller_id/order/sale/by/desc}" title="">进店逛逛</a>
                </div>
            </div>
            <!--S Mixed Info-->
            <div class="mixed-info">
                <div class="mixed-hd">
                    <h2>图文详情</h2>
                </div>
                <div class="mixed-bd">
                    {$content}
                </div>
            </div>
        </div>


          {set:$distriid=Yun::getDistributorGroupID()}
          {if: $userdetail && $userdetail['group_id']==$distriid}
            <div style="min-height:96px;" class="subtoolbar" data-flag="1">
                <div class="row">
                    <a href="javascript:void(0)" class="button service"><i class="icon icon-service"></i></a>
                    <a href="javascript:void(0)" data-popover=".popover-about" class="button sharebut open-popover"><i class="icon icon-share"></i></a>
                    <a  class="button  join add-to-cart" data-id="{$id}" data-promo="{$promo}" data-activeid="{$active_id}"><i class="icon icon-cart"></i>加入购物车</a>
                    <a href="javascript:void(0);" class="button buy color-orange" data-id="{$id}" data-promo="{$promo}" data-activeid="{$active_id}"><i class="icon icon-money"></i>立即购买</a>
                    <!--<a href="javascript:void(0);" class="button color-orange" data-id="{$id}" data-promo="{$promo}" data-activeid="{$active_id}"><i class="icon icon-cart"></i>加入购物车</a>-->
                </div>
            <div class="mallDetail-link row" id="copy" data-clipboard-text="{$share_link}">

                <div><i class="icon icon-service"></i><span>推广链接</span></div>
                <div>奖: {$brokerage}元</div>
            </div>

           </div>
           {else:}
        <div class="subtoolbar" data-flag="0">
            <div class="row">
                <a href="javascript:void(0)" class="button service"><i class="icon icon-service"></i></a>
                <a href="javascript:void(0)" data-popover=".popover-about" class="button sharebut open-popover"><i class="icon icon-share"></i></a>
                <a  class="button  join add-to-cart" data-id="{$id}" data-promo="{$promo}" data-activeid="{$active_id}"><i class="icon icon-cart"></i>加入购物车</a>
                <a href="javascript:void(0);" class="button buy color-orange" data-id="{$id}" data-promo="{$promo}" data-activeid="{$active_id}"><i class="icon icon-money"></i>立即购买</a>
                <!--<a href="javascript:void(0);" class="button color-orange" data-id="{$id}" data-promo="{$promo}" data-activeid="{$active_id}"><i class="icon icon-cart"></i>加入购物车</a>-->
            </div>
        </div>
        {/if}
    </div>

</div>